module.exports = class extends think.cmswing.rest {
	
   /**
   * 获取分类信息
   * /api/member 获取全部代理
   * /api/member/1 获取代理id为1的栏目信息
   * @returns {Promise.<*>}
   */
	
  async getAction() {
    let data;
    const model = this.model('member');
    if (this.id) {
      data = await model.where({username: this.id}).field('username,mobile,status,real_name,coin_count,card_count,last_login_time,last_login_ip').find();
      return this.success(data);
    }
  }
  
  async postAction() {
	const data = this.post();
//	console.log('member post action-data--------:'+JSON.stringify(data));
    return this.success({name:'post成功！'});
  }
};
